package com.ruoyi.fire.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 出警对象 fire_dispatch
 * 
 * @author ruoyi
 * @date 2023-06-13
 */
public class FireDispatch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 出警编号 */
    @Excel(name = "出警编号")
    private Long id;

    /** 任务编号 */
    @Excel(name = "任务编号")
    private Long taskId;

    /** 出警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出警时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date dispatchTime;

    /** 事故类型 */
    @Excel(name = "事故类型")
    private String accidentType;

    /** 出警人员 */
    @Excel(name = "出警人员")
    private String personnel;

    /** 任务状态（1-已接受 2-正在执行 3-已完成） */
    @Excel(name = "任务状态", readConverterExp = "1=-已接受,2=-正在执行,3=-已完成")
    private String taskStatus;

    /** 状态 */
    private String STATUS;

    /** 删除标志（0-存在 2-删除） */
    private String delFlag;

    /** 创建者 */
    private String creator;

    /** 更新者 */
    private String updater;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setDispatchTime(Date dispatchTime) 
    {
        this.dispatchTime = dispatchTime;
    }

    public Date getDispatchTime() 
    {
        return dispatchTime;
    }
    public void setAccidentType(String accidentType) 
    {
        this.accidentType = accidentType;
    }

    public String getAccidentType() 
    {
        return accidentType;
    }
    public void setPersonnel(String personnel) 
    {
        this.personnel = personnel;
    }

    public String getPersonnel() 
    {
        return personnel;
    }
    public void setTaskStatus(String taskStatus) 
    {
        this.taskStatus = taskStatus;
    }

    public String getTaskStatus() 
    {
        return taskStatus;
    }
    public void setSTATUS(String STATUS) 
    {
        this.STATUS = STATUS;
    }

    public String getSTATUS() 
    {
        return STATUS;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }
    public void setUpdater(String updater) 
    {
        this.updater = updater;
    }

    public String getUpdater() 
    {
        return updater;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("taskId", getTaskId())
            .append("dispatchTime", getDispatchTime())
            .append("accidentType", getAccidentType())
            .append("personnel", getPersonnel())
            .append("taskStatus", getTaskStatus())
            .append("STATUS", getSTATUS())
            .append("delFlag", getDelFlag())
            .append("creator", getCreator())
            .append("createTime", getCreateTime())
            .append("updater", getUpdater())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
